package com.hospital.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hospital.common.R;
import com.hospital.pojo.Patient;

/**
 * @Author:晓风残月Lx
 * @Date: 2022/11/19 10:58
 */
public interface PatientService extends IService<Patient> {
    R savePatient(Patient patient);

    Long insertPatient(Patient patient);

    Page<Patient> getList(Page<Patient> patientPage);

    Page<Patient> getListByCreateId(Page<Patient> patientPage,Long id);

    Page<Patient> getListBySearchName(Page<Patient> patientPage, String name);

    Page<Patient> getListBySearchNameAndCreateId(Page<Patient> patientPage, String name, Long id);

    boolean deleteById(Integer id);

    Patient getPatient(Integer pId);

    Patient getOneByPId(Integer pId);

    int updatePatient(Patient patient);

}
